home *** CD-ROM | disk | FTP | other *** search
/ Eagles Nest BBS 8 / Eagles_Nest_Mac_Collection_Disc_8.TOAST / Developer Environments / ProGraph251 / ProGraph v2.5 / Super System Classes I / Document Shell ƒ / Document Shell.ReadMe < prev    next >
Encoding:
Text File  |  1991-10-15  |  2.3 KB  |  49 lines  |  [TEXT/ttxt]

  1. Example:      Document Shell
  2. Written by:  Garth Smedley, TGS Systems
  3. Contents:     Document Shell.pgs
  4.                    Document Shell.rsrc
  5.                    Document Shell.ReadMe
  6.                    Apple Event XPrims
  7.                    Apple Event XPrims Library
  8.  
  9.  
  10. Needs Prograph Extensions:
  11.                     Apple Event XPrims
  12.                     Math Primitives
  13.                     TGS Primitives #1
  14.                     TGS Primitives #2
  15.                     Segment Loader
  16.                     Alias Manager
  17.                     Apple Event Manager
  18.                     Basic Toolbox
  19.                     
  20.  
  21. Needs Libraries to Compile:
  22.                     Apple Event XPrims Library
  23.                     Document Shell.rsrc
  24.                     SCLibrary
  25.                     Library
  26.  
  27. Standard Methods That Were Modified:
  28.                    None
  29.  
  30. New Classes:
  31.                   File
  32.                   Printer                
  33.                   Apple Event
  34.                   Document
  35.                   Close Dialog
  36.                                     Doc App
  37.  
  38. Description
  39. -----------
  40. The Document Shell, as the name implies, is a generic application that handles documents.  That is, it provides code for opening, saving, printing and closing generic documents, as well as handling required Apple Events.  You have to flesh it out with your own low-level code for loading saving, printing and editing your document's format.
  41.  
  42. How To Use In Your Program
  43. -------------------------
  44.  
  45. The easiest way to use the document shell is to use it as a starting point for your application. Otherwise selectively load all the classes named above and all universal methods into your file.
  46.  
  47. The Document Shell implements a complete "File" Menu. It Opens, Saves, Closes, and Prints documents automatically and handles the required Apple Events. You have to override load and save data methods in class Document and a couple of methods in class Printer to save and print your document's data.
  48.  
  49. The "Document Shell.rsrc" file contains a bundle resource which tells the Finder which icons to use when displaying your documents and your application. The bundle resource and the "save type", "creator" and "load types" attributes of the "File" class should be changed to your own application signature and file type.  The Finder will not draw your icons until you have build your application with the Prograph compiler.